package demo.vue.service.impl;

import demo.vue.bean.User;
import demo.vue.dao.UserDao;
import demo.vue.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户服务实现
 * @author wl
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao dao;

    @Override
    public List<User> findAll() {
        return dao.queryAll();
    }

    @Override
    public User findById(Integer id) {
        return dao.queryById(id);
    }

    @Override
    public void updateUser(User user) {
        dao.updateIUser(user);
    }
}
